<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>我的购物车页面</h1>
    <table>
        <thead>
            <tr>
              <th>商品序号</th>
              <th>商品名称</th>
              <th>商品图片</th>
              <th>商品价格</th>
              <th>购买数量</th>
              <th>商品总价</th>
              <th>操作</th>
            </tr>
        </thead>
        <tbody>
             {% for good in goods %} <!-- for循环  good:迭代变量，goods：定义变量，模板变量 -->
             <tr>
                 <th>{{forloop.counter0}}</th>
                 <th>{{good.name}}</th>
                 <th>
                     <img src={{good.imgsrc}} width="50" height="50" />
                 </th>
                 <th>{{good.price}}</th>
                 <th>{{good.buy_count}}</th>
                 <th>{{good.allprice}}</th>
                 <th>删除购物车商品</th>
             </tr>
             {% endfor %}
        </tbody>
    </table>

</body>
</html>